package services
{
	import model.VO.VOPath;
	import model.VO.PlaceNode;
	
	import mx.collections.ArrayCollection;
	
	import valueObjects.VOTrip;

	public class TestObjectGenerator
	{
		public function TestObjectGenerator()
		{
		}
		
		public static function get myTrips():ArrayCollection
		{
			// creating 3 trips and assigning 3 nodes + 2 paths
//			var trip1:VOTrip = new VOTrip("trip1");
//			var node1:VOPlace  = new VOPlace("node1");
//			node1.latitude = 37.44380809201236;
//			node1.longitude = -122.15314382019044;
//			
//			var node2:VOPlace  = new VOPlace("node2");
//			node2.latitude = 37.46479389246121;
//			node2.longitude = -122.12447637023926;
//			
//			var node3:VOPlace  = new VOPlace("node3");
//			node3.latitude = 37.426769833984956;
//			node3.longitude = -122.11795323791505;
//			
//			trip1.children = new ArrayCollection([ node1, node2, node3 ]);
////			trip1.paths = new ArrayCollection([ new VOPath("path1"), new VOPath("path2")]);
//			
//			var trip2:VOTrip = new VOTrip("trip2");
//			trip2.children = new ArrayCollection([ new VOPlace("node1"),
//												new VOPlace("node2"),
//												new VOPlace("node3")]);
////			trip2.paths = new ArrayCollection([ new VOPath("path1"), new VOPath("path2")]);
//			
//			var trip3:VOTrip = new VOTrip("trip3");
//			trip3.children = new ArrayCollection([ new VOPlace("node1"),
//												new VOPlace("node2"),
//												new VOPlace("node3")]);
////			trip3.paths = new ArrayCollection([ new VOPath("path1"), new VOPath("path2")]);
			
			//return new ArrayCollection([trip1, trip2, trip3]);
			return null;
		}
	}
}